package pl.edu.agh.anomalyids.network.header.impl;

import pl.edu.agh.anomalyids.network.header.Header;

public class HTTPHeader implements Header {

	private static final long serialVersionUID = 1L;
	
	private String requestMethod;

	public String getRequestMethod() {
		return requestMethod;
	}

	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		
		builder.append("======= HTTP ======\n");
		builder.append("Request method: ");
		builder.append(getRequestMethod());
		builder.append("\n");
		
		return builder.toString();
	}

	@Override
	public String getName() {
		return "HTTP";
	}
}
